export const jsUrl = './cesium_1.95/Build/Cesium/Cesium.js'
export const cssUrl = './cesium_1.95/Build/Cesium/Widgets/widgets.css'
export const WMTSToken = 'd91491773166833755634fff1e3f0c4e'
export const WMTSImageries = [
  {
    id: 'img',
    url: 'http://{s}.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=' + WMTSToken,
    layer: 'img_w',
    // style: 'default',
    format: 'tiles',
    tileMatrixSetID: 'w',
    subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
    maximumLevel: 18,
    // credit: new Cesium.Credit('天地图影像'),
    name: '天地图影像' //图层命名
  },
  {
    id: 'cia',
    url: 'http://{s}.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&tk=' + WMTSToken,
    layer: 'cia_w',
    // style: 'default',
    format: 'tiles',
    tileMatrixSetID: 'w',
    subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
    maximumLevel: 18,
    // credit: new Cesium.Credit('天地图影像标注'),
    name: '天地图影像标注'
  },
  {
    id: 'vec',
    url: 'http://{s}.tianditu.gov.cn/vec_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=vec&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=' + WMTSToken,
    layer: 'vec_w',
    style: 'default',
    format: 'tiles',
    tileMatrixSetID: 'w',
    subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
    maximumLevel: 18,
    // credit: new Cesium.Credit('天地图基础'),
    name: '天地图基础'
  },
  {
    id: 'cva',
    url: 'http://{s}.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&tk=' + WMTSToken,
    layer: 'cva_w',
    style: 'default',
    format: 'tiles',
    tileMatrixSetID: 'w',
    subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
    maximumLevel: 18,
    // credit: new Cesium.Credit('天地图基础标注'),
    name: '天地图基础标注'
  },
  {
    id: 'ter',
    url: 'http://{s}.tianditu.gov.cn/ter_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ter&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&tk=' + WMTSToken,
    layer: 'ter_w',
    style: 'default',
    format: 'tiles',
    tileMatrixSetID: 'w',
    subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
    maximumLevel: 18,
    // credit: new Cesium.Credit('天地图地形'),
    name: '天地图地形'
  },
  {
    id: 'cta',
    url: 'http://{s}.tianditu.gov.cn/cta_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cta&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&tk=' + WMTSToken,
    layer: 'cta_w',
    style: 'default',
    format: 'tiles',
    tileMatrixSetID: 'w',
    subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
    maximumLevel: 18,
    // credit: new Cesium.Credit('天地图地形标注'),
    name: '天地图地形标注'
  }
]
export const imageLayerIds = ['img', 'cia']
export const vectorLayerIds = ['vec', 'cva']
export const terrainLayerIds = ['ter', 'cta']